package com.yao.spider.shanghai.dao;

import com.yao.spider.core.util.MyBatiesUtils;
import com.yao.spider.shanghai.bean.PersonInfo;
import com.yao.spider.shanghai.mapper.PersionMapper;
import org.apache.ibatis.session.SqlSession;

public class PersonDaoImpl implements PersonDao{
    public int insert(PersonInfo personInfo, SqlSession session) {
        PersionMapper mapper = session.getMapper(PersionMapper.class);
        mapper.insert(personInfo);
        session.commit();
        return 1;
    }
}
